import {get, post} from "@/utils/http";

// 数据配置查询
export async function fetchDataMarketingConfig(params) {
    return await get('dataMarketingConfig/dataConfigQuery', params)
}

// 数据配置所搜
export async function DataMarketingSearch(params) {
    return await post('dataMarketingConfig/dataSearched', params)
}

// 数据配置所选
export async function DataMarketingSelect(params) {
    return await post('dataMarketingConfig/dataSelected', params)
}

// 数据配置查询
export async function fetchFlowMarketingConfig(params) {
    return await get('dataMarketingConfig/flowConfigQuery', params)
}

// 数据配置所搜
export async function flowMarketingSearch(params) {
    return await post('dataMarketingConfig/flowSearched', params)
}

// 数据配置所选
export async function flowMarketingSelect(params) {
    return await post('dataMarketingConfig/flowSelected', params)
}

// 综合全部列表查询
export async function fetchMarketingAllList(params) {
    return await get('dataMarketing/allList', params)
}

// 综合调单列表查询
export async function fetchMarketingJustList(params) {
    return await get('dataMarketing/adjustList', params)
}

// 综合调单所搜
export async function marketingJustSearch(params) {
    return await post('dataMarketing/dataSearched', params)
}

// 综合调单所搜
export async function marketingJustSelect(params) {
    return await post('dataMarketing/dataSelected', params)
}

// 综合新增备注
export async function marketingAddRemarks(params) {
    return await post('dataMarketing/insertRemarks', params)
}

// 综合已办列表查询
export async function fetchHistoryList(params) {
    return await get('dataMarketing/processed', params)
}

// 综合备注列表查询
export async function fetchMarketingRemarkslist(params) {
    return await get('dataMarketing/remarkslist', params)
}

// 综合待办列表查询
export async function fetchMarketingAgencyList(params) {
    return await get('dataMarketing/untreated', params)
}

// 综合待办列表查询
export async function addCallClickRecord(params) {
    return await post('dataMarketing/addClick', params)
}

/**
 * 生成验证码
 * **/
export async function createSendCode(params) {
    return await post( 'dataMarketing/sendCode', params)
}
